from django.contrib import admin
from magictags.models import *

#class TaggedItemInline(admin.TabularInline):
#    model = TaggedItem
    
#class TaggedItemAdmin(admin.ModelAdmin):
#    list_display = ("tag", "content_type")
    
class TagAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}
    list_display = ("name", "slug",)

    

admin.site.register(Tag, TagAdmin)
#admin.site.register(TaggedItem, TaggedItemAdmin)

